a tile based game in java