public void drawGrid(Graphics graphics) {
        graphics.setColor(Color.darkGray);
        int dimension = fieldWidth;
        for (int i=1; i<=Math.ceil(dimension/boxSize); i++) {
            int currentIncrement = i*boxSize;
            graphics.drawLine(currentIncrement, 0, currentIncrement, dimension);
            graphics.drawLine(0, currentIncrement, dimension, currentIncrement);
        }
    }