GameLoader(String[] classNames) throws Exception{
		
		Arrays.sort(classNames);
		
		for(String s:classNames){
			
			Class<?> c = classLoader.loadClass(s);
				
			if(Scene.class.isAssignableFrom(c)){
				
				scenes.put(s, (Scene) c.newInstance());
				System.out.println("Found scene " + s);
				continue;
				
			}
			
			if(Game.class.isAssignableFrom(c)){
				
				game = (Game) c.newInstance();
				System.out.println("Found game  " + s);
				continue;
				
			}
				
			classes.put(s, (Class<?>) c.newInstance());
			System.out.println("Found unspecified class " + s);
			
		}
		
		if(game == null || scenes.isEmpty()){
			
			System.out.print("Lacking game or scene class.\nAborting.");
			System.exit(1);
			
		}
		
		game.startGame();
						
	}