added main method to Robot.java for testing