stoppped player from going off screen works