Game logic refactoring and started enemy separation algorithm