created entity class.
Refactored classes so that game entities contains their own update logic.