Refactoring: collision checking for shots and enemies out of Factory classes and optimized