public void movePlayer(String input) {

		String cmd = input.toLowerCase();
		xpre = xPosition;
		ypre = yPosition;
		switch (cmd) {
		case "up":
			setXY(xPosition, --yPosition);
			break;
		case "down":
			setXY(xPosition, ++yPosition);
			break;
		case "left":
			setXY(--xPosition, yPosition);
			break;
		case "right":
			setXY(++xPosition, yPosition);
			break;
		default:
			System.out.println("Invalid command: Try again");
			break;
		}
	}