Bug Fixes

Made it so that if all 9 tiles are taken, it becomes a tie. Previously
was counted by moves, but an invalid click was registered, so it was
possible to tie with only 8 tiles taken.

Also fixed the player changing if an invalid click was made.