Changed the particle effects class to make it more readable