Added itteration counter
Optimized CheckMissplacements a bit (it is uglier now however)