fixed set variables to correctly set values

fixed a bug in setOnGoal where it would not set to false, also fixed
setRow and setCol to update correctly
changed mask value to be a constant
changed name of variable