Added entity class

Added an Entity class in anticipation of other dynamic objects. Also
abstracted many parts of the player class into the entity class, and
made Player an instance of Entity.