If GRIDOFFSET isn't 10 You can't get to some edges of the grid (see qtminesweeper::keyPressEvent(..) in qtminesweeper.cpp)