refactoring: replace use of consts.WINDOW_SIZE by the data included in 'screen' object