Adding inheritance to the enemy and player classes.