optimized sprite animation
added entity base class