Added the health and AI

None of this works, but it all there. It needs fixing up.