q learning looks like it might be working now, fixed instant death error