Fixing bugs, adding game-winning condition, improving AI