public void showError(int error) {
        String errorMessage = "Unknown";
        if (error == 1) {
            errorMessage = "The surface must be atleast 3x3 large.";
        } else if (error == 2) {
            errorMessage = "There must be more than one timestep";
        } else if (error == 3) {
            errorMessage = "The constant K must be between 0 and 1.";
        } else if (error == 4) {
            errorMessage = "The maximium amount of timesteps is 100";
        } else if (error == 5) {
            errorMessage = "The surface can not be larger than 3600 blocks (60x60).";
        }
        frame.getPopup().showError(errorMessage);
    }