Attempt at fix for enemy glitching