Remove border handling
Use same values for window, board and matrix sizes