escape the game by ESC and added a function which clears the board and some variables