Fixed a bug where the AI would continue playing even when game was over
Some more refactoring of action buttons