Moved most of WinParticles.cpp to a new class