Implemeted constructor and tick method of Particle class