private void layTrack() {
        int[] next = null;
        switch (buildDir) {
            case "N":
                next = coaster.nextTrack(1);
                break;
            case "E":
                next = coaster.nextTrack(2);
                break;
            case "S":
                next = coaster.nextTrack(3);
                break;
            case "W":
                next = coaster.nextTrack(4);
                break;
        }
        if (next != null) {
            if (WorldTiles.isRightCorner(selectedTrack)) placeRightCorner(next);
            else {
                boolean canLay = worldData.addTile(next[0], next[1], next[2], selectedTrack);
                if (canLay) coaster.addTrack(next, selectedTrack);
            }
        }
    }