Fix bug with ending turn in middle of a command
AI uses commands