refactored clearBoard to resetGame