private void readEnvironment() throws IOException {
        BufferedReader reader = new BufferedReader(new FileReader(_location));

        char[][] environment = new char[_lineCount][_lineLength];

        for (int currentLine = 0; currentLine < _lineCount; ++currentLine) {
            String line = reader.readLine();
            for (int linePos = 0; linePos < line.length(); ++linePos) {
                char currentChar = line.charAt(linePos);
                if (currentChar == START_CHAR) {
                    _startPos = new int[2];
                    _startPos[0] = currentLine;
                    _startPos[1] = linePos;
                }
                if (currentChar == GOAL_CHAR) {
                    _goalPos = new int[2];
                    _goalPos[0] = currentLine;
                    _goalPos[1] = linePos;
                }
                if (currentChar == PORTAL_CHAR1) {
                    if (_portalPos1Eingang == null) {
                        _portalPos1Eingang = new int[2];
                        _portalPos1Eingang[0] = currentLine;
                        _portalPos1Eingang[1] = linePos;
                    } else {
                        _porta1Pos1Ausgang = new int[2];
                        _porta1Pos1Ausgang[0] = currentLine;
                        _porta1Pos1Ausgang[1] = linePos;
                    }
                    if (currentChar == PORTAL_CHAR2) {
                        if (_portalPos2Eingang == null) {
                            _portalPos2Eingang = new int[2];
                            _portalPos2Eingang[0] = currentLine;
                            _portalPos2Eingang[1] = linePos;
                        } else {
                            _portalPos2Ausgang = new int[2];
                            _portalPos2Ausgang[0] = currentLine;
                            _portalPos2Ausgang[1] = linePos;
                        }

                    }

                    environment[currentLine][linePos] = currentChar;
                }
            }

            reader.close();
            _environment = environment;
        }
    }