Added selection hiding and fixed game logic.