Fixed player offscreen prevention