Updated UpdateWindowList() to keep windows in order so that the tiling does not get messed up