added some better AI (currently unfinished)