fixed segfault, clicking on map now spawns a ship in the clicked square