Fixed bug where player couldn't move beyond viewport