var xPos = c * SQUARE_DIMENSION; : This ensures that as the column ( c ) increases, the square moves to the right.