private Animation GetWalkAnimation(dir d){
        Animation fm = null;
        switch(d){
            case down: fm = WalkDown; break;
            case left: fm=WalkLeft; break;
            case right: fm=WalkRight; break;
            case up: fm=WalkUp; break;  
        }
        return fm;
    }