Fixed issues on clearing the board