Refactored mouse cursor system