Checks to see if game has been won.