Added function to get a random position on the map