Fixes the logic behind clicks on the game board
And more minor refactors/fixes...