var mob = document.getElementById('mob');
var health = document.getElementById('health');
var score = document.getElementById('score');
function kick() {
health.value = health.value -10;
if (health.value == 0) {
health.value = 100;
mob.setAttribute('src', '2.png');
}
}