Foran rallies twice to stay in playoff hunt