game over function in gameBoard