Fixed the finish game conditions