@Override
	public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
		am = (AtlasMain) sbg.getState(2);
		tf = new TextField(gc, gc.getDefaultFont(), 700,500,200,25);
		tf.setBackgroundColor(Color.white);
		tf.setTextColor(Color.black);
		
		buttons = new ArrayList<Button>();
		try {
			rm = new ResourceManager();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		knight = rm.getSprite("knight.png").getSubImage(0, 0,32,32);
		mage = rm.getSprite("mage.png").getSubImage(0, 0,32,32);
		thief = rm.getSprite("thief.png").getSubImage(0, 0,32,32);
		
		Button button1 = new Button(520, 400, "Choose Knight", 0);
		Button button2 = new Button(710, 400, "Choose Mage", 1);
		Button button3 = new Button(900, 400, "Choose Thief", 2);
		buttons.add(button1);
		buttons.add(button2);
		buttons.add(button3);
	}