Added an AI and win/loss conditions