added last shot check and tweaked coefficients