finally fixed the board to play all spaces

fixed the code to play all spaces, also added the clearBoard function