added functions

added dice function
added attack function using the dice to the player class
added defense to the NPC class
cleaned up the formatting of the text