adding particles like in app.cpp