OOP for move and mouse