Create class for mouse logic