There are some funny comments in the code:
function mousePressed() {
// This is the worst if statement in the history of if statements
if (!refining && !mde && !completed && !shared) {
...
}
}