y is never going to be < 2. It should have been y < PlotConfiguration.intPlotHeight + 2 instead.