Implemented the Update method for the Robot Class