fixed bug with player going beoynd the screen