Added AI, changed engine so player can lose.