Made hitbox creation generic using dictionary methods.