refactoring board.py snakeIsInsideScreen()