Update Robot.java

just possible logic changes to make life easier