-Fixed issues with the while block and the shoot logic.