improved the AI so that A* isnt used every turn, code runs way faster but is still buggy