Really fixed enemy behavior algorithm, hopefully