introduced moving average and removed makey makey code