Animated sprite class and moving character