}
synchronized (gameObject) {
final GameObjectLocation oldLocation = gameObject.getLocation();
// move to new location
gameObject.doMove(STEP_DELAY);
detectWallCollisions(gameObject);
final GameObjectLocation newLocation = gameObject.getLocation();
if (!newLocation.equals(oldLocation)) {