Start with it the code outlining a definitive path, the pseudo code will be it taking a random choice to places around itself until it reaches 10,10. Then make random stuff happen. You want to add stuff to prevent it from hitting itself