Created a if else control structure for players life