Nature of code

step() {

//relative pos of walker currently relative to mouse
//then 50% change it moves that direction(both x AND y)

let negX = (this.x - mouseX) < 0 
let negY = (this.y - mouseY) < 0

//if negative, mouse is higher

    let r = random(1);

    if (r < 0.5) {



      this.y++;
    } else if (r < 0.6) {
      this.x--;
    } else if (r < 0.8) {
      this.y++;
    } else {
      this.y--;
    }
  }