Java code for navigating a Robo with specified move