Got a simple AI working. But has_won() doesn't work :(