get particles to move across the screen on mouse clicks using state transitions