added negative infinity check to scoring.h