moved transform functions to GameEntity
no more global scope