public void update(GameContainer container, int delta) {
		Input input = container.getInput();

		int newX = x;
		int newY = y;

		timer += delta;

		if (timer > 50) {
			timer = 0;
			
			if (input.isKeyDown(Input.KEY_W)) {
				newY--;

			} else if (input.isKeyDown(Input.KEY_S)) {
				newY++;

			} else if (input.isKeyDown(Input.KEY_D)) {
				newX++;
			} else if (input.isKeyDown(Input.KEY_A)) {
				newX--;
			}
		}

		if (!world.isSolid(newX, newY)) {
			x = newX;
			y = newY;
		}
	}