Made necessary changes and enemy now dies after going out of view. Game is a bit slow but everything else is perfect