Refactoring MouseRobot