adds an explosion on collision and format MainClass