Started animation class and cleaned up some previous code
animation class is mostly finished