basic game logic and game board