removed extra parameter flip from animation function call
moved hatchling logic to class, fixed animation problem