Trying to implement Metropolis-Algorithm to simulate Ising-Model (no external h-field)