Winning/Losing condition implemented.