added more features to animator

now it keeps track of last movement direction