Fit maze to window