Made the numRows and numCols a variable so it is easily expandable to various sizes, keeping the swiping functionality intact