Entity and Mob classes added. Code cleaned and abstracted.