Modified Robot.java