Implement random walk algoritm in processing