Added animation to entities. Also added required enter/leave functions
to the state class.