}
int i = 0;
while ((unit.getMovementPoints() > 0) && (i < path.getLength())) {
Coordinate pathCoordinate = path.getStep(i);
Tile tile = realm.getTile(pathCoordinate);
ICommand command = null;
if (tile.getNumberOfUnits() > 0) {
Unit tileUnit = tile.getUnits().get(tile.getUnits().firstKey());
if (!unit.getPlayer().equals(tileUnit.getPlayer())) {
command = new AttackTileCommand(unit, tile);
} else {