not letting player leave screen