moved animation direction mapping to xml file