I changed set location and getEntity so that it takes the x coordinate first then the y coordinate. so, it is of form: setLocation(x, y) and getEntity(x, y).
My code works fine with these changes. However, Is this problematic for the graders? Should I set if back?