Moved particles to module, improvements to AI