added movement attributes to Entity class
changed destructor to class destroy functor automatically