added a entity class.
redesigned sprite more effiency and more features.