added simple enemy AI and function for normalizing in utils.lua