added directional input and animations