Simulation and graphical depiction of the Metropolis Algorithm