public void popMoves() { foreach (string key in OS.Keys) { unit currentUnit = (unit)OS[key]; currentUnit.clearMoves(); currentUnit.populateMoves(OS); } }