Updating scene object to give an attack ID

updated main loop to recognize attacks and build projectile object