fixing bug with window resizing making board out of sync