Added function bool RoundEnded() and fixed some bugs