Random walker edge trapping fixed. The capPositions method moved out of the util class.