How do i make it so when there is an intersection, there is a randomisation of which direction to take?
if(earthFront())
{
if(!earthToLeft())
setDirection(LEFT);
move(5);
}
//Other directions for above, right and below apply too
(there are four options for direction)