Thanks for being forgiving, most of the time was spent programming the AI, it turns out it's really hard to program a good AI.