added health/damage system
improved (and radically simplified) AI block finding code