go to x: pick random -180 to 180 y: pick random -180 to -240 repeat until not touch skiTree? or touching skiRock? go to x: pick random -180 to 180 y: pick random -180 to -240 //this code is for the rocks and the trees it makes sure that they do no overlap each other.