Backend code for Artillery Fire simulation