Implemented updatehealth() for robots

Fixes a bug of them never dying.