Added end of game checkes