extracted methods,updateParticles and whatIsDebugLineValue
added the possibility to toggle the debug line