Add checkHeath funtion to make sure heath is not bigger than max heath