SUNY New Paltz code for the Freescape Cup challenge