fixed nullptr exception when player attempted to move a unit to an invalid position