canPlaceRobber function