public void checkBorders(SnakeSection head) {
        if (head.getX() <= 0 ||
                head.getY() <= 0 ||
                head.getX() >= game.getWidth() ||
                head.getY() >= game.getHeight()
        ) isAlive = false;
    }