Recoded it and made it move.

You can use controlp5 if you erase comment-out for followings.

import controlP5.*;
ControlP5 cp5;
boolean cp5Visble = true;

setupCP5();

void setupCP5() { ... }

void mouseClicked() { ... }