improving hitbox system for high quality and performance in game code