Added simple modules system and started work on AI