changed way death is handled
reformated code
fix ai and changed pos to float