Refactoring: Logic of mouse was moved to Mouse class