checking if the voting closes when everyone votes