check if snake is going to go off grid and end game if so