var allGameplayData =
{
	// Basic data
	"car_speed":	300,
	"train_random":	0.2,

	// Levels
	"levels": [
		{
			//level 1
			"car_goal": 6,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 3, "direction": "down"},
			],
			"railtracks":
			[
					{"row": 4, "interval": 6, "speed": 500, "direction": "right", "min_cars": 2, "max_cars": 4}
			],
			"barriers":
			[
				{ "column": 4, "row": 4 },
			]
		},
		{
			//level 2
			"car_goal": 6,
			"time_limit": 60,
			"roads":
			[
				{"column": 6, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
					{"row": 4, "interval": 2, "speed": 680, "direction": "right", "min_cars": 1, "max_cars": 1}
			],
			"barriers":
			[
				{ "column": 6, "row": 4 },
			]
		},
		{
			//level 3
			"car_goal": 6,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
					{"row": 4, "interval": 3, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 2},
					{"row": 5, "interval": 3, "speed": 700, "direction": "left", "min_cars": 1, "max_cars": 2}
			],
			"barriers":
			[
				{ "column": 4, "row": 4 },
			]
		},
		{
			//level 4
			"car_goal": 10,
			"time_limit": 60,
			"roads":
			[
				{"column": 3, "interval": 2, "direction": "up"},
				{"column": 5, "interval": 3, "direction": "down"},
			],
			"railtracks":
			[
					{"row": 4, "interval": 2, "speed": 620, "direction": "left", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 3, "row": 4 },
				{ "column": 5, "row": 4 }
			]
		},
		{
			//level 5
			"car_goal": 10,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"},
				{"column": 5, "interval": 3, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 3, "interval": 4, "speed": 700, "direction": "left", "min_cars": 2, "max_cars": 2},
				{"row": 4, "interval": 4, "speed": 600, "direction": "left", "min_cars": 2, "max_cars": 2}
			],
			"barriers":
			[
				{ "column": 4, "row": 3 },
				{ "column": 5, "row": 3 },
			]
		},
		{
			//level 6
			"car_goal": 10,
			"time_limit": 60,
			"roads":
			[
				{"column": 5, "interval": 1, "direction": "up"}
			],
			"railtracks":
			[
				{"row": 1, "interval": 3, "speed": 700, "direction": "left", "min_cars": 1, "max_cars": 2},
				{"row": 7, "interval": 3, "speed": 720, "direction": "right", "min_cars": 2, "max_cars": 3}
			],
			"barriers":
			[
				{ "column": 5, "row": 1 },
				{ "column": 5, "row": 7 },
			]
		},
		{
			//level 7
			"car_goal": 10,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 1, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 7, "interval": 2, "speed": 760, "direction": "right", "min_cars": 3, "max_cars": 4}
			],
			"barriers":
			[
				{ "column": 4, "row": 2 },
			]
		},
		{
			//level 8
			"car_goal": 15,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 3, "interval": 3, "speed": 550, "direction": "right", "min_cars": 1, "max_cars": 1},
				{"row": 4, "interval": 3, "speed": 700, "direction": "left", "min_cars": 1, "max_cars": 2},
				{"row": 5, "interval": 3, "speed": 550, "direction": "right", "min_cars": 1, "max_cars": 1}
			],
			"barriers":
			[
				{ "column": 4, "row": 3 },
			]
		},
		{
			//level 9
			"car_goal": 15,
			"time_limit": 45,
			"roads":
			[
				{"column": 2, "interval": 4, "direction": "down"},
				{"column": 6, "interval": 4, "direction": "up"},
			],
			"railtracks":
			[
				{"row": 4, "interval": 1, "speed": 700, "direction": "right", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 2, "row": 4 },
				{ "column": 6, "row": 4 },
			]
		},
		{
			//level 10 (DONE)
			"car_goal": 15,
			"time_limit": 40,
			"roads":
			[
				{"column": 3, "interval": 4, "direction": "down"},
				{"column": 6, "interval": 4, "direction": "up"},
			],
			"railtracks":
			[
				{"row": 5, "interval": 1, "speed": 700, "direction": "right", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 3, "row": 2 },
				{ "column": 6, "row": 5 },
			]
		},
		{
			//level 11
			"car_goal": 30,
			"time_limit": 35,
			"roads":
			[
				{"column": 3, "interval": 1, "direction": "up"},

			],
			"railtracks":
			[
				{"row": 1, "interval": 2, "speed": 700, "direction": "left", "min_cars": 3, "max_cars": 4},
			],
			"barriers":
			[
				{ "column": 3, "row": 1 },
			]
		},
		{
			//level 12 
			"car_goal": 15,
			"time_limit": 35,
			"roads":
			[
				{"column": 3, "interval": 3, "direction": "up"},
				{"column": 6, "interval": 3, "direction": "up"},

			],
			"railtracks":
			[
				{"row": 2, "interval": 1.9, "speed": 620, "direction": "left", "min_cars": 1, "max_cars": 1},
			],
			"barriers":
			[
				{ "column": 3, "row": 5 },
				{ "column": 6, "row": 5 },
			]
		},
		{
			//level 13
			"car_goal": 10,
			"time_limit": 35,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 5, "interval": 2, "speed": 500, "direction": "right", "min_cars": 1, "max_cars": 1},
				{"row": 6, "interval": 2, "speed": 500, "direction": "left", "min_cars": 1, "max_cars": 2},
			],
			"barriers":
			[
				{ "column": 4, "row": 2 },
			]
		},
		{
			//level 14 
			"car_goal": 20,
			"time_limit": 35,
			"roads":
			[
				{"column": 2, "interval": 4, "direction": "down"},
				{"column": 4, "interval": 4, "direction": "down"},
				{"column": 6, "interval": 4, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 4, "interval": 1, "speed": 700, "direction": "right", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 2, "row": 4 },
				{ "column": 4, "row": 4 },
				{ "column": 6, "row": 4 },
			]
		},
		{
			//level 15
			"car_goal": 60,
			"time_limit": 45,
			"roads":
			[
				{"column": 2, "interval": 2, "direction": "down"},
				{"column": 3, "interval": 2, "direction": "up"},
				{"column": 4, "interval": 2, "direction": "down"},
				{"column": 5, "interval": 2, "direction": "up"},
				{"column": 6, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 5, "interval": 8, "speed": 800, "direction": "right", "min_cars": 10, "max_cars": 10},
			],
			"barriers":
			[
				{ "column": 2, "row": 5 },
				{ "column": 3, "row": 5 },
				{ "column": 4, "row": 5 },
				{ "column": 5, "row": 5 },
				{ "column": 6, "row": 5 },
			]
		},
		{
			//level 16
			"car_goal": 30,
			"time_limit": 40,
			"roads":
			[
				{"column": 2, "interval": 1, "direction": "up"},
				{"column": 4, "interval": 4, "direction": "down"},
				{"column": 6, "interval": 1, "direction": "up"},
			],
			"railtracks":
			[
				{"row": 2, "interval": 2, "speed": 700, "direction": "right", "min_cars": 2, "max_cars": 4},
			],
			"barriers":
			[
				{ "column": 2, "row": 5 },
				{ "column": 4, "row": 2 },
				{ "column": 6, "row": 5 },
			]
		},
		{
			//level 17
			"car_goal": 4,
			"time_limit": 30,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "up"},
			],
			"railtracks":
			[
				{"row": 1, "interval": 3, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 1},
				{"row": 4, "interval": 1, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 2},
				{"row": 7, "interval": 1, "speed": 700, "direction": "right", "min_cars": 1, "max_cars": 2},
			],
			"barriers":
			[
				{ "column": 4, "row": 7 },
			]
		},
		{
			//level 18 
			"car_goal": 18,
			"time_limit": 40,
			"roads":
			[
				{"column": 1, "interval": 3, "direction": "down"},
				{"column": 2, "interval": 3, "direction": "up"},
				{"column": 6, "interval": 3, "direction": "up"},
				{"column": 7, "interval": 3, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 3, "interval": 4, "speed": 800, "direction": "left", "min_cars": 2, "max_cars": 3},
				{"row": 4, "interval": 4, "speed": 800, "direction": "right", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 1, "row": 3 },
				{ "column": 2, "row": 4 },
				{ "column": 6, "row": 4 },
				{ "column": 7, "row": 3 },
			]
		},
		{
			//level 19
			"car_goal": 20,
			"time_limit": 35,
			"roads":
			[
				{"column": 2, "interval": 5, "direction": "up"},
				{"column": 3, "interval": 5, "direction": "up"},
				{"column": 4, "interval": 5, "direction": "up"},
				{"column": 5, "interval": 5, "direction": "up"}
			],
			"railtracks":
			[
				{"row": 4, "interval": 2, "speed": 900, "direction": "right", "min_cars": 3, "max_cars": 5},
			],
			"barriers":
			[
				{ "column": 2, "row": 7 },
				{ "column": 3, "row": 6 },
				{ "column": 4, "row": 5 },
				{ "column": 5, "row": 4 },
			]
		},
		{
			//level 20 
			"car_goal": 12,
			"time_limit": 40,
			"roads":
			[
				{"column": 3, "interval": 1, "direction": "down"},
				{"column": 5, "interval": 1, "direction": "up"},
			],
			"railtracks":
			[
				{"row": 1, "interval": 2, "speed": 700, "direction": "right", "min_cars": 1, "max_cars": 2},
				{"row": 5, "interval": 2, "speed": 700, "direction": "left", "min_cars": 1, "max_cars": 2},
			],
			"barriers":
			[
				{ "column": 3, "row": 1 },
				{ "column": 3, "row": 5 },
				{ "column": 5, "row": 1 },
				{ "column": 5, "row": 5 },
			]
		},
		{
			//level 21 (DONE)
			"car_goal": 8,
			"time_limit": 30,
			"roads":
			[
				{"column": 2, "interval": 1, "direction": "down"},
				{"column": 6, "interval": 10, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 8, "interval": 2, "speed": 900, "direction": "left", "min_cars": 2, "max_cars": 2},
			],
			"barriers":
			[
				{ "column": 2, "row": 1 },
				{ "column": 6, "row": 8 },
			]
		},
		{
			//level 22 
			"car_goal": 10,
			"time_limit": 60,
			"roads":
			[
				{"column": 2, "interval": 6, "direction": "down"},
				{"column": 6, "interval": 6, "direction": "up"}
			],
			"railtracks":
			[
				{"row": 1, "interval": 2, "speed": 500, "direction": "left", "min_cars": 1, "max_cars": 3},
				{"row": 2, "interval": 3, "speed": 600, "direction": "left", "min_cars": 1, "max_cars": 3},
				{"row": 6, "interval": 3, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 2, "row": 1 },
				{ "column": 2, "row": 6 },
				{ "column": 6, "row": 2 },
				{ "column": 6, "row": 6 },
			]
		},
		{
			//level 23 
			"car_goal": 8,
			"time_limit": 60,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 2, "interval": 1, "speed": 1400, "direction": "left", "min_cars": 1, "max_cars": 1},
				{"row": 6, "interval": 4, "speed": 600, "direction": "left", "min_cars": 5, "max_cars": 5},
				{"row": 7, "interval": 4, "speed": 600, "direction": "right", "min_cars": 5, "max_cars": 5},
			],
			"barriers":
			[
				{ "column": 4, "row": 1 },
				{ "column": 4, "row": 6 },
			]
		},
		{
			//level 24 (DONE)
			"car_goal": 10,
			"time_limit": 50,
			"roads":
			[
				{"column": 2, "interval": 2, "direction": "up"},
				{"column": 6, "interval": 2, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 1, "interval": 1.5, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 2},
				{"row": 4, "interval": 7, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 1},
				{"row": 7, "interval": 1.5, "speed": 700, "direction": "right", "min_cars": 1, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 6, "row": 1 },
				{ "column": 6, "row": 7 },
				{ "column": 2, "row": 1 },
				{ "column": 2, "row": 7 },
			]
		},
		{
			//level 25 (DONE)
			"car_goal": 3,
			"time_limit": 20,
			"roads":
			[
				{"column": 4, "interval": 1, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 3, "interval": 1, "speed": 500, "direction": "left", "min_cars": 1, "max_cars": 1},
				{"row": 4, "interval": 3, "speed": 600, "direction": "left", "min_cars": 1, "max_cars": 1},
				{"row": 5, "interval": 3, "speed": 500, "direction": "left", "min_cars": 1, "max_cars": 1},
				{"row": 6, "interval": 4, "speed": 400, "direction": "left", "min_cars": 1, "max_cars": 1},
			],
			"barriers":
			[
				{ "column": 4, "row": 3 },
			]
		},
		{
			//level 26 (DONE)
			"car_goal": 60,
			"time_limit": 35,
			"roads":
			[
				{"column": 2, "interval": 1, "direction": "down"},
				{"column": 6, "interval": 1, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 6, "interval": 4, "speed": 500, "direction": "left", "min_cars": 2, "max_cars": 4},
			],
			"barriers":
			[
				{ "column": 2, "row": 6 },
				{ "column": 6, "row": 6 },
			]
		},
		{
			//level 27 (DONE)
			"car_goal": 10,
			"time_limit": 30,
			"roads":
			[
				{"column": 4, "interval": 2, "direction": "down"}
			],
			"railtracks":
			[
				{"row": 2, "interval": 2, "speed": 760, "direction": "left", "min_cars": 2, "max_cars": 3},
				{"row": 7, "interval": 2, "speed": 540, "direction": "right", "min_cars": 1, "max_cars": 2}
			],
			"barriers":
			[
				{ "column": 4, "row": 2 },
			]
		},
		{
			//level 28 (DONE)
			"car_goal": 4,
			"time_limit": 30,
			"roads":
			[
				{"column": 4, "interval": 1, "direction": "down"},
			],
			"railtracks":
			[
				{"row": 1, "interval": 3, "speed": 600, "direction": "right", "min_cars": 2, "max_cars": 2},
				{"row": 5, "interval": 7, "speed": 600, "direction": "right", "min_cars": 1, "max_cars": 1},
				{"row": 7, "interval": 0, "speed": 600, "direction": "right", "min_cars": 2, "max_cars": 2}
			],
			"barriers":
			[
				{ "column": 4, "row": 1 },
				{ "column": 4, "row": 7 },
			]
		},
		{
			//level 29 (DONE)
			"car_goal": 6,
			"time_limit": 30,
			"roads":
			[
				{"column": 4, "interval": 1, "direction": "up"},

			],
			"railtracks":
			[
				{"row": 1, "interval": 2, "speed": 750, "direction": "left", "min_cars": 1, "max_cars": 2},
				{"row": 4, "interval": 2, "speed": 700, "direction": "right", "min_cars": 2, "max_cars": 3},
				{"row": 7, "interval": 2, "speed": 700, "direction": "left", "min_cars": 2, "max_cars": 3},
			],
			"barriers":
			[
				{ "column": 4, "row": 1 },
				{ "column": 4, "row": 4 },
				{ "column": 4, "row": 7 },
			]
		},
		{
			//level 30(DONE)
			"car_goal": 10,
			"time_limit": 30,
			"roads":
			[
				{"column": 3, "interval": 2, "direction": "down"},
				{"column": 5, "interval": 2, "direction": "up"}
			],
			"railtracks":
			[
				{"row": 3, "interval": 2, "speed": 500, "direction": "right", "min_cars": 1, "max_cars": 2},
				{"row": 4, "interval": 4, "speed": 700, "direction": "left", "min_cars": 1, "max_cars": 1},
				{"row": 5, "interval": 2, "speed": 500, "direction": "right", "min_cars": 1, "max_cars": 2}
			],
			"barriers":
			[
				{ "column": 3, "row": 3 },
				{ "column": 5, "row": 5 },
			]
		}
	]
}

function GameplayDB() {
}

GameplayDB.prototype.getGameplayData= function() {
	return allGameplayData;
}