Keeping track of the current position, new position and current state of the robot