@Override public void onMoved(MovedEvent event) { Point2D point = parent.getBoardSvg().calculatePosition(robber.getLocation()); Point2D headLocation = getHeadLocation(point); Point2D bodyLocation = getBodyLocation(point); head.setX(headLocation.getX()); head.setY(headLocation.getY()); body.setX(bodyLocation.getX()); body.setY(bodyLocation.getY()); }