Fixed hasWon check. Inserted awesome comments