Refactoring: moved projectile and tank logic to own class.