voting done and checks game state