Use getter and setter for mouse position

Fixes projectile direction issues