private boolean moveSpace(Direction d) {
		switch (d){
		case UP:
			if (spacePosY>0){
				board[spacePosX][spacePosY] = board[spacePosX][spacePosY-1];
				spacePosY--;
				board[spacePosX][spacePosY] = 0;
				return true;
			}
		case DOWN:
			if (spacePosY<(board.length-1)) {
				board[spacePosX][spacePosY] = board[spacePosX][spacePosY+1];
				spacePosY++;
				board[spacePosX][spacePosY] = 0;
				return true;
			}
		case LEFT:
			if (spacePosX>0){
				board[spacePosX][spacePosY] = board[spacePosX-1][spacePosY];
				spacePosX--;
				board[spacePosX][spacePosY] = 0;
				return true;
			}
		case RIGHT:
			if (spacePosX<(board[0].length-1)) {
				board[spacePosX][spacePosY] = board[spacePosX+1][spacePosY];
				spacePosX++;
				board[spacePosX][spacePosY] = 0;
				return true;
			}
		}
		return false;		
	}