public void render(){
		screen.clear();
		
		switch(state.getState()){
			case 1: 
				menu.render(screen);
				break;
			case 2:
				menu.render(screen);
				break;
			case 3:
				dungeon.render(screen);
				break;
			case 4:
				dungeon.render(screen);
				break;
			case 5:
				//World map render
				break;
			default:
				menu.render(screen);
				break;	
		}
		
		//Is state = dungeon state, render. 
		
		
//		font.render("X: " + mouse.getX(), 20, 20, 0xffffff, screen);
//		font.render("Y: " + mouse.getY(), 20, 35, 0xffffff, screen);
//		
		//Font Test
//		font.render("!\"#$%&'()`+,-./", 10, 10, 0xFFff0000, 1, true, screen);
//		font.render("0123456789:;<_>?", 10, 30, 0xFF00ff00, 1, true, screen);
//		font.render("@ABCDEFGHIJKLMNO", 10, 50, 0xFF0000ff, 1, true, screen);
//		font.render("PQRSTUVWXYZ[\\]^a", 10, 80, 0xFFff00FF, 1, true, screen);
//		font.render("bcdefghiklmnopq", 10, 100, 0xFFffFF00, 1, true, screen);
//		font.render("rstuvwxyz", 10, 120, 0xFF00ffff, 1, true, screen);
		
//		font.render(time.getTimeSting(), 450, 560, 0xffffffff, 1, true, screen);
		
		motd = "Semi-working edit mode. Please test for awkwardness. Press E to check/save.";
//		font.render(motd, (screen.width / 2) - ((motd.length() / 2) * font.SPACING), 700, 0xfffffff, 1, true, screen);
		
		Font.render(main.getFps() + "fps " + main.getUps() + "ups", 10, 688, 0xffffffff, 1, true, screen);
				
		for(int i = 0; i < main.getPixels().length; i++) main.getPixels()[i] = screen.pixels[i];
		
		
	}