Java code used for the GUI of the robot