-added check for remaining points and maximum possible points