Unit unit = (Unit) object;
Tile location = unitService.getLocation(unit);
Dynasty dynasty = playerService.getDynasty(userService.getUser());
int width = mapService.getWidth();
int height = mapService.getHeight();
clientService.execute(new MoveUnitCommand(dynasty, unit, new Tile(
(location.getX() + getHorizontalDiff() + width) % width,
(location.getY() + getVerticalDiff() + height) % height)));
}
}