Enemy removal bug

Fixed the bug where enemies would be randomly removed. Also made
collision detection slightly more performant.