Rules engine tested, started work on AI