Fixed several bugs regarding the AI and endturn, disabled many of the log() commands to reduce console output