Fixed crash when killing the last enemy; added maxHealth for enemies