added life counter
added Player class