refactoring + particle on ball colliding
removed dependancy on context