Checking if the players are outside the screen.