Implemented win condition, HTML counters.