Improved the AI so it can actually beat a legitimate opponent