Renamed playerSprite to objectSprite